package jmine.tec.services.api;

import bancosys.tec.exception.AbstractRuntimeException;
import bancosys.tec.exception.LocalizedMessageHolder;

/**
 * Unchecked exception lancada se ocorrer alguma falha durante a execucao de um servico.
 * 
 * @author Rafael Volpato (Jun 6, 2007)
 */
public class ServiceAssertionFailedError extends AbstractRuntimeException {

    /**
     * Construtor
     * 
     * @param messageHolder messageHolder
     */
    public ServiceAssertionFailedError(LocalizedMessageHolder messageHolder) {
        super(messageHolder);
    }

    /**
     * Construtor
     * 
     * @param messageHolder messageHolder
     * @param cause cause
     */
    public ServiceAssertionFailedError(LocalizedMessageHolder messageHolder, Throwable cause) {
        super(messageHolder, cause);
    }

    /**
     * @param key key
     * @param arguments arguments
     */
    @Deprecated
    public ServiceAssertionFailedError(String key, Object... arguments) {
        super(key, arguments);
    }

    /**
     * @param key key
     * @param cause cause
     * @param arguments arguments
     */
    @Deprecated
    public ServiceAssertionFailedError(String key, Throwable cause, Object... arguments) {
        super(key, cause, arguments);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getBundleBaseName() {
        return "jmine-tec-services-api-messages";
    }

}
